<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/index.xhtml">
        <ui:define name="title"/>

        <ui:define name="body">
            <h:form>
                <p:panel id="panel" header="#{bundle.ViewTblInsumosTitle}" style="margin-bottom:5px;">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>

                    <h:panelGrid columns="2" cellpadding="3">
                        <h:outputText value="#{bundle.ViewTblInsumosLabel_codInsumo}"/>
                        <h:outputText value="#{tblInsumosController.selected.codInsumo}" title="#{bundle.ViewTblInsumosTitle_codInsumo}"/>
                        <h:outputText value="#{bundle.ViewTblInsumosLabel_descripcion}"/>
                        <h:outputText value="#{tblInsumosController.selected.descripcion}" title="#{bundle.ViewTblInsumosTitle_descripcion}"/>
                    </h:panelGrid>
                    <br />

                    <p:commandButton action="#{tblInsumosController.prepareCreate}" value="#{bundle.ViewTblInsumosCreateLink}" />
                    <p:commandButton action="#{tblInsumosController.prepareList}" value="#{bundle.ViewTblInsumosShowAllLink}"/>
                    
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
